From 148cb27d4d0fbe54f435820e2c61c27467e65b47 Mon Sep 17 00:00:00 2001 From: Leonid Beder Date: Sat, 2 Mar 2019 11:06:30 +0200 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 2534f11..5f2f499 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,30 @@ Now you can build it: CROSS_COMPILE=x86_64-linux-musl- cargo build --target=x86_64-unknown-linux-musl ``` +## Test + +To run the tests, you'd need to have the `qt` backend installed: + +For Mac OS: + +```bash +brew install qt +``` + +For Linux (Ubuntu): + +```bash +sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa +sudo apt-get update -qq +sudo apt-get install qt5-default qttools5-dev-tools +``` + +You would need to pass `qt` root directory via the `QT_DIR` environment variable. For example: + +```bash +QT_DIR=/usr/local/opt/qt cargo test +``` + ## Example Let's see few QR code generation examples: