Revision 57af2c1c2fccb221fa54fd92415f424b1d7e5beb authored by Yong He on 12 February 2023, 06:48:18 UTC, committed by GitHub on 12 February 2023, 06:48:18 UTC
1 parent 77706b7
github_test.sh
#!/usr/bin/env bash
# CONFIGURATION=release or debug
if [ "${CC}" == "gcc" ] && [ "${CONFIGURATION}" == "release" ]
then
SLANG_TEST_CATEGORY=full
else
SLANG_TEST_CATEGORY=smoke
fi
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCHITECTURE=$(uname -m)
# Darwin is actually macosx (for paths etc)
if [ "${PLATFORM}" == "darwin" ]; then
PLATFORM="macosx"
# Modern OSX is only 64 bit, so assume that
if [ "${ARCHITECTURE}" == "i386" ]; then
ARCHITECTURE="x64"
fi
fi
if [ "${ARCHITECTURE}" == "x86_64" ]; then
ARCHITECTURE="x64"
fi
TARGET=${PLATFORM}-${ARCHITECTURE}
OUTPUTDIR=bin/${TARGET}/${CONFIGURATION}/
if [ "${ARCHITECTURE}" == "x64" -a "${PLATFORM}" != "macosx" ]; then
unzip vk_swiftshader_linux_x64.zip -d $OUTPUTDIR
fi
SLANG_TEST=${OUTPUTDIR}slang-test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OUTPUTDIR
${SLANG_TEST} -bindir ${OUTPUTDIR} -travis -category ${SLANG_TEST_CATEGORY} ${SLANG_TEST_FLAGS}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...