Rename regression to test

This commit is contained in:
Fabing Li
2024-06-28 19:12:24 +08:00
committed by Tate, Hongliang Tian
parent 5eefd600cc
commit f675552c5a
147 changed files with 196 additions and 108 deletions

39
test/apps/scripts/shell_cmd.sh Executable file
View File

@ -0,0 +1,39 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
set -x
SCRIPT_DIR=/test
cd ${SCRIPT_DIR}
touch hello.txt
mv hello.txt hello_world.txt
rm hello_world.txt
awk '{print $2}' shell_cmd.sh
cp shell_cmd.sh shell_cmd_backup.sh
cat shell_cmd_backup.sh
rm shell_cmd_backup.sh
ln -s shell_cmd.sh tesk_cmd_soft_link
readlink -f tesk_cmd_soft_link
tail -n 1 tesk_cmd_soft_link
rm tesk_cmd_soft_link
ln shell_cmd.sh tesk_cmd_hard_link
tail -n 1 tesk_cmd_hard_link
unlink tesk_cmd_hard_link
sed 3q shell_cmd.sh
find . -name "*shell_cmd*"
mkdir foo
rmdir foo
echo "Hello world from asterinas" > hello.txt
rm hello.txt
cd ..