mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Use docker as dev environment
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
bf961756b9
commit
9137ef434f
4
regression/apps/scripts/Makefile
Normal file
4
regression/apps/scripts/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
.PHONY: all
|
||||
|
||||
all: ./*.sh
|
||||
@cp ./*.sh $(BUILD_DIR)
|
11
regression/apps/scripts/nettest.sh
Executable file
11
regression/apps/scripts/nettest.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
NETTEST_DIR=/regression/network
|
||||
cd ${NETTEST_DIR}
|
||||
echo "Start net test......"
|
||||
./tcp_server &
|
||||
./tcp_client
|
||||
./udp_server &
|
||||
./udp_client
|
||||
|
||||
echo "All net test passed"
|
@ -2,15 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=/scripts
|
||||
SCRIPT_DIR=/regression
|
||||
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}
|
||||
${SCRIPT_DIR}/${testcase}
|
||||
done
|
||||
echo "All tests passed"
|
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=/scripts
|
||||
SCRIPT_DIR=/regression
|
||||
cd ${SCRIPT_DIR}
|
||||
|
||||
touch hello.txt
|
||||
|
Reference in New Issue
Block a user