Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 20, 2023
1 parent 733a700 commit bd3a767
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion releases/gcc-install.docker
Original file line number Diff line number Diff line change
@@ -1 +1 @@
m108
m109
2 changes: 1 addition & 1 deletion releases/gcc-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi

if [[ ! -f $GCC_INSTALLED ]]; then
# Download and uncompress library archive
GCC_ARCHIVE_PATH=${GCC_ARCHIVE_PATH:-"https://github.com/fem-on-kaggle/fem-on-kaggle/releases/download/gcc-20230601-021405-51698cc/gcc-install.tar.gz"}
GCC_ARCHIVE_PATH=${GCC_ARCHIVE_PATH:-"https://github.com/fem-on-kaggle/fem-on-kaggle/releases/download/gcc-20230720-103117-23644dc/gcc-install.tar.gz"}
[[ $GCC_ARCHIVE_PATH == http* ]] && GCC_ARCHIVE_DOWNLOAD=${GCC_ARCHIVE_PATH} && GCC_ARCHIVE_PATH=/tmp/gcc-install.tar.gz && wget ${GCC_ARCHIVE_DOWNLOAD} -O ${GCC_ARCHIVE_PATH}
if [[ $GCC_ARCHIVE_PATH != skip ]]; then
tar -xzf $GCC_ARCHIVE_PATH --strip-components=$INSTALL_PREFIX_DEPTH --directory=$INSTALL_PREFIX
Expand Down
26 changes: 24 additions & 2 deletions tests/gcc/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,33 @@
"metadata": {},
"outputs": [],
"source": [
"expected_version = \"\"\n",
"output = \"\"\n",
"error = \"\""
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1431a759-6da7-4697-b085-5d3f790004f2",
"metadata": {},
"outputs": [],
"source": [
"%%bash --out expected_version --err error --no-raise-error\n",
"gcc-expected-version | tr '\\n' ' '"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "492d25b5-e26a-49a5-8cc6-58dcf13060ff",
"metadata": {},
"outputs": [],
"source": [
"assert len(expected_version) > 0, \"Empty or unexpected version: \" + expected_version\n",
"assert error == \"\", \"Non-empty error: \" + error"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -60,8 +83,7 @@
"metadata": {},
"outputs": [],
"source": [
"GCC_VERSION = \"12\"\n",
"assert GCC_VERSION + \".\" in output, \"Unexpected output: \" + output\n",
"assert expected_version in output, \"Unexpected output: \" + output\n",
"assert error == \"\", \"Non-empty error: \" + error"
]
}
Expand Down

0 comments on commit bd3a767

Please sign in to comment.