Use docker as dev environment

This commit is contained in:
Jianfeng Jiang
2023-07-05 14:08:58 +08:00
committed by Tate, Hongliang Tian
parent bf961756b9
commit 9137ef434f
52 changed files with 202 additions and 207 deletions

View File

@ -0,0 +1,4 @@
.PHONY: all
all: ./*.sh
@cp ./*.sh $(BUILD_DIR)

View 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"

View File

@ -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"

View File

@ -3,7 +3,7 @@
set -e
set -x
SCRIPT_DIR=/scripts
SCRIPT_DIR=/regression
cd ${SCRIPT_DIR}
touch hello.txt