https://github.com/3mdeb/grubenv
grubenv edit module
https://github.com/3mdeb/grubenv
Last synced: 5 months ago
JSON representation
grubenv edit module
- Host: GitHub
- URL: https://github.com/3mdeb/grubenv
- Owner: 3mdeb
- Created: 2017-03-26T16:00:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-28T23:30:59.000Z (about 9 years ago)
- Last Synced: 2023-09-21T15:12:38.384Z (over 2 years ago)
- Language: C
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### grubenv edit module
[Ceedling](http://www.throwtheswitch.org/ceedling/) was used as test
environment.
How to test:
1. Install `ceedling`:
```
gem install ceedling
```
2. Create new project
```
ceedling new ceedlingProject
```
3. Create `grubenv` module
```
rake module:create[grubenv]
```
> Escape brackets in `zsh` shell
4. Clone this repository
5. Copy content of this repo into `ceedlingProject`:
```
cp -r grubenv/* ../ceedlingProject/
```
6. Set `PREFIX` to your `grubenv/test` directory in `test_grubenv.c` file:
```
#define PREFIX "/home/user/projects/test/grubenv/
```
7. Run tests:
```
rake test:all
```
8. Test output:
```
Test 'test_grubenv.c'
---------------------
Running test_grubenv.out...
-----------
TEST OUTPUT
-----------
[test_grubenv.c]
- "ERROR: src/grubenv.c:56: Ivalid grubenv file size: 981"
- ""
- "ERROR: src/grubenv.c:56: Ivalid grubenv file size: 1038"
- ""
- "ERROR: src/grubenv.c:44: Failed to open grubenv file: /home/...
- ""
- "ERROR: src/grubenv.c:79: Invalid grubenv header"
- ""
- ""
--------------------
OVERALL TEST SUMMARY
--------------------
TESTED: 19
PASSED: 19
FAILED: 0
IGNORED: 0
```