#!/bin/bashset-eBASEDIR=$(readlink-f"$(dirname"$0")"/..)source"${BASEDIR}/ci/utils.sh"export MGB_TEST_NO_LOG=1export MGB_STABLE_RNG=1function cpp_test {pushd /tmp/build/"${1}">/dev/null ./dnn/test/megdnn_test ./test/megbrain_testpopd>/dev/null}if[["$1"!="cpu"&&"$1"!="cuda"]];thenecho"Argument must cpu or cuda"exit 1ficpp_test "$@"