Skip to content
Snippets Groups Projects
Commit f527bea8 authored by Florent Gluck's avatar Florent Gluck
Browse files

Updated Makefile to latest nexus-exam changes

install.md: added section on how to build a static version of nexus-exam
nexus-exam: decreased window height to be less ugly
parent b0d97a4e
No related branches found
No related tags found
No related merge requests found
......@@ -236,10 +236,9 @@ help_client:
@echo " build_nexush Build nexush for Linux/amd64; require the SERVER variable"
@echo " and optionally CERT (see below)"
@echo " build_nexus-cli Build nexus-cli for Linux/amd64; same as above"
@echo " build_nexus-exam Build nexus-exam for Linux/amd64; require EXAM_USER and"
@echo " and EXAM_PWD variables which define the credentials for"
@echo " the user used by nexus-exam to connect to nexus server"
@echo " the user nexus-exam uses to connect to nexus server"
@echo " build_nexus-exam Build nexus-exam for Linux/amd64; require CERT, SERVER"
@echo " EXAM_USER and EXAM_PWD. The last two define credentials"
@echo " for the user used by nexus-exam to connect to nexus server"
@echo " clean_client Delete $(BUILD_DIR_CLIENT) directory (generated binaries)"
@echo ""
@echo "┌──────────────────────────────────────────────────────────────────────────────┐"
......@@ -247,7 +246,7 @@ help_client:
@echo "└──────────────────────────────────────────────────────────────────────────────┘"
@echo " run_nexush Run nexush for Linux/amd64; require LOGIN variable"
@echo " Example: make run_nexush LOGIN=janedoe@nexus.org"
@echo " run_nexus-exam Run nexus-exam; require CERT and SERVER variables"
@echo " run_nexus-exam Run nexus-exam"
@echo ""
@echo "┌──────────────────────────────────────────────────────────────────────────────┐"
@echo "│ VALIDATION tests │"
......@@ -315,8 +314,8 @@ clean_client:
run_nexush: check_login_var $(BUILD_DIR_CLIENT)/nexush
$(BUILD_DIR_CLIENT)/nexush $(LOGIN)
run_nexus-exam: check_server_var $(BUILD_DIR_CLIENT)/nexus-exam
@NEXUS_SERVER=$(SERVER) NEXUS_CERT=$(CERT)/$(CA_CERT_FILE) $(BUILD_DIR_CLIENT)/nexus-exam
run_nexus-exam: $(BUILD_DIR_CLIENT)/nexus-exam
$(BUILD_DIR_CLIENT)/nexus-exam
tests: check_login_var tests/run_tests build_nexus-cli $(BUILD_DIR_CLIENT)/nexus-cli
@cd tests && ./run_tests $(BUILD_ABS_CLIENT)/nexus-cli $(LOGIN)
......
......@@ -260,7 +260,7 @@ NEXUS_CERT=$HOME/nexus-server/certs/ca-cert.pem build/386/linux/nexus-cli janedo
## Building nexus-exam
For now, the only supported combination of OS and architecture for nexus-exam is Linux/amd64. Please note that it cannot be built statically as some static libraries are missing.
For now, the only supported combination of OS and architecture for nexus-exam is Linux/amd64.
Similarly to nexush and nexus-cli, nexus-exam requires `SERVER` and `CERT` environment variables (see [Building nexush and nexus-cli](#building-nexush-and-nexus-cli)). Furthermore, two other environment variables are required: `EXAM_USER` and `EXAM_PWD`. These define the credentials for the user used by nexus-exam to connect to the nexus server. On the server side, make sure this user has the `VM_ATTACH_ANY` capability.
......@@ -280,6 +280,10 @@ or:
build/nexus-exam
```
### Note
A static version of nexus-exam can be produced via the `build_nexus_exam_static` script inside the `docker` directory. This version uses docker to build the binary and it is to be used in the live exam OS image used during exams.
## Deleting all nexus clients
```sh
......
......@@ -27,7 +27,7 @@ import (
)
const (
windowTitle = "Live Exam"
windowTitle = "nexus-exam"
)
var (
......@@ -202,7 +202,7 @@ func run() int {
}
win.SetContent(container.NewPadded(container.NewVBox(label, form)))
win.Resize(fyne.NewSize(600,300))
win.Resize(fyne.NewSize(600,200))
win.ShowAndRun()
return 0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment