From f7752926e970ede66c23a3627893a9b41fa180c9 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 26 Jun 2024 15:15:15 +0300 Subject: [PATCH] Remove test script --- .github/workflows/ci.yml | 4 ---- .scripts/script.sh | 35 ----------------------------------- 2 files changed, 39 deletions(-) delete mode 100755 .scripts/script.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 245f815..9f564f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,10 +46,6 @@ jobs: - name: Build binary run: make all - - name: Run tests - working-directory: ${{env.SRC_DIR}} - run: bash .scripts/script.sh - Typos: name: Typos runs-on: ubuntu-latest diff --git a/.scripts/script.sh b/.scripts/script.sh deleted file mode 100755 index 4e4320e..0000000 --- a/.scripts/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -################################################################################ - -main() { - local sum1 sum2 - - ./gomakegen --mod --strip . -o Makefile2 - - [[ $? -ne 0 ]] && exit 1 - - sum1=$(checksum "Makefile") - sum2=$(checksum "Makefile2") - - if [[ "$sum1" != "$sum2" ]] ; then - echo "Current Makefile differs from generated Makefile" - diff Makefile Makefile2 - rm -f Makefile2 - exit 1 - fi - - echo "Current Makefile is equal to generated Makefile" - - rm -f Makefile2 - - exit 0 -} - -checksum() { - sha256sum < "$1" | cut -f1 -d" " -} - -################################################################################ - -main "$@"