Skip to content

Commit

Permalink
added x8664 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Westsi committed Jul 2, 2024
1 parent 01f5d9f commit 133bdb1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ on:
pull_request:
push:
jobs:
# x86_64:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: '^1.21' # The Go version to download (if necessary) and use.
# - name: Build and Test
# run: sh ci/x86_64.sh
x86_64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21' # The Go version to download (if necessary) and use.
- name: Build and Test
run: sh ci/x86_64.sh
aarch64:
runs-on: macos-latest
steps:
Expand Down
31 changes: 31 additions & 0 deletions ci/x86_64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

go build -o drm .
if [ $? -ne 0 ]; then
echo "Go build failed"
fi

# testfiles=`find ./ci/test -type f -name '*.dor'`
# for test in $testfiles; do
# echo $test
# done

while IFS= read -r line; do
funcinf=$(echo $line | tr ":" "\n")
rc=-1
for inf in $funcinf; do
if [ "$rc" -ne -1 ]; then
if [ $rc -ne $inf ]; then
echo "Test Failed - expected $inf, got $rc"
exit 1
else
echo "Test Succeeded"
fi
break
fi
echo "$inf"
./drm -a x86_64 ci/test/$inf.dor
./out/aarch64/$inf
rc=$?
done
done < ./ci/test/metadata.tests

0 comments on commit 133bdb1

Please sign in to comment.