mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
Reorganize the codebase
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
888853a6de
commit
271a16d492
16
regression/apps/scripts/run_tests.sh
Executable file
16
regression/apps/scripts/run_tests.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=/scripts
|
||||
cd ${SCRIPT_DIR}/..
|
||||
|
||||
echo "Running tests......"
|
||||
tests="hello_world/hello_world fork/fork execve/execve fork_c/fork signal_c/signal_test pthread/pthread_test hello_pie/hello"
|
||||
|
||||
for testcase in ${tests}
|
||||
do
|
||||
echo "Running test ${testcase}......"
|
||||
${testcase}
|
||||
done
|
||||
echo "All tests passed"
|
37
regression/apps/scripts/test_cmd.sh
Executable file
37
regression/apps/scripts/test_cmd.sh
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=/scripts
|
||||
cd ${SCRIPT_DIR}
|
||||
|
||||
touch hello.txt
|
||||
mv hello.txt hello_world.txt
|
||||
rm hello_world.txt
|
||||
|
||||
awk '{print $2}' test_cmd.sh
|
||||
cp test_cmd.sh test_cmd_backup.sh
|
||||
cat test_cmd_backup.sh
|
||||
rm test_cmd_backup.sh
|
||||
|
||||
ln -s test_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 test_cmd.sh tesk_cmd_hard_link
|
||||
tail -n 1 tesk_cmd_hard_link
|
||||
unlink tesk_cmd_hard_link
|
||||
|
||||
sed 3q test_cmd.sh
|
||||
|
||||
find . -name "*test_cmd*"
|
||||
|
||||
mkdir foo
|
||||
rmdir foo
|
||||
|
||||
echo "Hello world from jinux" > hello.txt
|
||||
rm hello.txt
|
||||
|
||||
cd ..
|
Reference in New Issue
Block a user