A simple memory testing utility

Revert "Removed github bits"

This reverts commit 56a4c49552d8f90b1ac0a0a15cd4afc6227381b8.

+39 -6
+30
.github/workflows/release.yml
··· 1 + name: "build-and-release" 2 + 3 + on: 4 + push: 5 + branches: 6 + - master 7 + 8 + jobs: 9 + build-and-release: 10 + runs-on: ubuntu-20.04 11 + 12 + steps: 13 + - name: Checkout repo 14 + uses: actions/checkout@v2 15 + 16 + - name: "Build and test" 17 + run: | 18 + sudo apt-get -qq update 19 + sudo apt-get install -y valgrind make gcc 20 + make test 21 + - uses: "marvinpinto/action-automatic-releases@latest" 22 + with: 23 + repo_token: "${{ secrets.GITHUB_TOKEN }}" 24 + automatic_release_tag: "latest" 25 + prerelease: true 26 + title: "Development build" 27 + files: | 28 + LICENSE.txt 29 + README.md 30 + memtest
+9 -6
README.md
··· 1 1 # memtest 2 2 3 + [![build-and-release Actions Status](https://github.com/jeduardo/memtest/workflows/build-and-release/badge.svg)](https://github.com/jeduardo/memtest/actions) 4 + 3 5 This is a simple utility which allocates as much megabytes of RAM as requested, pausing 0 or more seconds during allocation. It was designed to verify the progression of memory allocation on Linux environments under cgroups constraints for memory usage. 4 6 5 7 ## Building 6 8 7 9 The following dependencies are required to build the software: gcc, automake, and [valgrind](http://valgrind.org/) for the small test suite. 8 10 9 - - `make all` to build, test, and prepare the program for release. 10 - - `make test` to build and test the program. 11 - - `make memtest` to just build the program. 12 - - `make clean` to clean the entire workspace. 11 + * `make all` to build, test, and prepare the program for release. 12 + * `make test` to build and test the program. 13 + * `make memtest` to just build the program. 14 + * `make clean` to clean the entire workspace. 15 + 13 16 14 17 ## Using 15 18 16 19 The program accepts two arguments: 17 20 18 - - -m: memory size in MB, required. 19 - - -s: number of seconds to wait between allocations, optional. 21 + * -m: memory size in MB, required. 22 + * -s: number of seconds to wait between allocations, optional. 20 23 21 24 ### Sample run 22 25