Skip to content

Commit 4293a4c

Browse files
committed
Improve DOS testing
1 parent b992190 commit 4293a4c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/basic.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -420,27 +420,22 @@ jobs:
420420
make_dos:
421421
name: Make OpenWatcom DOS
422422
runs-on: ubuntu-latest
423+
env:
424+
WATCOM: "./watcom"
423425
steps:
424426
- name: Checkout
425427
uses: actions/checkout@main
426428
- name: Install tools
427429
run: |
428430
sudo apt-get install -y dosbox
429-
git clone https://github.com/cpputest/watcom-compiler.git watcom
430-
echo "WATCOM=$GITHUB_WORKSPACE/watcom" >> $GITHUB_ENV
431-
echo "CC=wcl" >> $GITHUB_ENV
432-
echo "CXX=wcl" >> $GITHUB_ENV
433-
echo "$GITHUB_WORKSPACE/watcom/binl" >> $GITHUB_PATH
434-
echo "CPPUTEST_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV
431+
git clone https://github.com/cpputest/watcom-compiler.git $WATCOM
432+
echo "$WATCOM/binl" >> $GITHUB_PATH
435433
- name: Build
436-
run: |
437-
$CC --version
438-
make -f $CPPUTEST_HOME/platforms/Dos/Makefile clean
439-
make -f $CPPUTEST_HOME/platforms/Dos/Makefile
434+
run: make -f platforms/Dos/Makefile
440435
- name: Test
441436
env:
442437
TERM: linux
443-
run: $CPPUTEST_HOME/platforms/Dos/alltests.sh
438+
run: platforms/Dos/alltests.sh
444439

445440
cmake_msys:
446441
name: CMake MSYS

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ generated/
9797
*.LIB
9898
*.LST
9999
*.EXE
100+
*.LOG
101+
/console_output
102+
/exit

platforms/Dos/alltests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
: "${CPPUTEST_HOME:=.}"
4+
35
checkForCppUTestToolsEnvVariable() {
46
if [ -z "$CPPUTEST_HOME" ] ; then
57
echo "CPPUTEST_HOME not set. You must set CPPUTEST_HOME to the top level CppUTest directory"

0 commit comments

Comments
 (0)