From d5a014f7d54e4800c63cb01f72d18723b361c246 Mon Sep 17 00:00:00 2001 From: Omkar Mujumdar Date: Tue, 11 Nov 2025 13:36:02 +0530 Subject: [PATCH] Updated ApraUtils references to ApraLinuxUtils --- .github/ISSUE_TEMPLATE/feature_request.yml | 6 +- .github/pull_request_template.md | 2 +- .github/workflows/c-cpp.yml | 14 +- CHANGELOG.md | 10 +- CMakeLists.txt | 18 +-- CONTRIBUTING.md | 26 +-- Doxyfile | 2 +- PACKAGING.md | 176 ++++++++++----------- README.md | 32 ++-- build.sh | 26 +-- coverage.sh | 8 +- examples/README.md | 28 ++-- examples/gpio_example.cpp | 4 +- examples/i2c_example.cpp | 6 +- examples/pwm_example.cpp | 6 +- examples/threading_example.cpp | 6 +- examples/usb_storage_example.cpp | 4 +- test.sh | 6 +- 18 files changed, 190 insertions(+), 190 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index e6bd33f..9ec862e 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,5 +1,5 @@ name: Feature Request -description: Suggest an idea or enhancement for ApraUtils +description: Suggest an idea or enhancement for ApraLinuxUtils title: "[Feature]: " labels: ["enhancement"] assignees: [] @@ -8,7 +8,7 @@ body: - type: markdown attributes: value: | - Thanks for suggesting a new feature! Your ideas help make ApraUtils better for everyone. + Thanks for suggesting a new feature! Your ideas help make ApraLinuxUtils better for everyone. - type: textarea id: problem @@ -24,7 +24,7 @@ body: attributes: label: Proposed Solution description: Describe the solution you'd like - placeholder: "I would like ApraUtils to..." + placeholder: "I would like ApraLinuxUtils to..." validations: required: true diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5743e06..e0dbcef 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -116,6 +116,6 @@ Paste test output here - [ ] Performance may be affected (please explain) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8221618..fdb1d34 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -37,13 +37,13 @@ jobs: - name: Run unit tests run: | cd build - if [ ! -f "./ApraUtilsTests" ]; then + if [ ! -f "./ApraLinuxUtilsTests" ]; then echo "Error: Test executable not found!" echo "Available executables:" find . -type f -executable exit 1 fi - ./ApraUtilsTests --gtest_output=xml:test_results.xml + ./ApraLinuxUtilsTests --gtest_output=xml:test_results.xml - name: Capture coverage data run: | @@ -84,7 +84,7 @@ jobs: mkdir -p coverage_html genhtml coverage_filtered.info \ --output-directory coverage_html \ - --title "ApraUtils Code Coverage" \ + --title "ApraLinuxUtils Code Coverage" \ --legend \ --show-details \ --branch-coverage \ @@ -128,14 +128,14 @@ jobs: if: always() with: name: test-executable - path: build/ApraUtilsTests + path: build/ApraLinuxUtilsTests retention-days: 7 - name: Upload library artifact uses: actions/upload-artifact@v4 with: - name: libApraUtils - path: build/libApraUtils.a + name: libApraLinuxUtils + path: build/libApraLinuxUtils.a retention-days: 30 - name: Create coverage badge @@ -144,7 +144,7 @@ jobs: with: auth: ${{ secrets.GIST_SECRET }} gistID: ${{ secrets.GIST_ID }} - filename: aprautils-coverage.json + filename: apralinuxutils-coverage.json label: Coverage message: ${{ steps.coverage.outputs.COVERAGE_PERCENT }}% valColorRange: ${{ steps.coverage.outputs.COVERAGE_PERCENT }} diff --git a/CHANGELOG.md b/CHANGELOG.md index efff7dc..f04f505 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,7 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Build System** - CMake build configuration (CMakeLists.txt) - C++14 standard support - - Static library output (libApraUtils.a) + - Static library output (libApraLinuxUtils.a) - GitHub Actions CI/CD pipeline - **Documentation** @@ -149,10 +149,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Links -- [Repository](https://github.com/Apra-Labs/ApraUtils) -- [Issues](https://github.com/Apra-Labs/ApraUtils/issues) -- [Pull Requests](https://github.com/Apra-Labs/ApraUtils/pulls) -- [Releases](https://github.com/Apra-Labs/ApraUtils/releases) +- [Repository](https://github.com/Apra-Labs/ApraLinuxUtils) +- [Issues](https://github.com/Apra-Labs/ApraLinuxUtils/issues) +- [Pull Requests](https://github.com/Apra-Labs/ApraLinuxUtils/pulls) +- [Releases](https://github.com/Apra-Labs/ApraLinuxUtils/releases) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cfbb120..fe3117e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}" ${CMAKE_MODULE_PATH}) -project(ApraUtils) +project(ApraLinuxUtils) # Options for building tests and coverage option(BUILD_TESTS "Build unit tests" OFF) @@ -15,7 +15,7 @@ if(NOT UNIX OR APPLE) message(FATAL_ERROR "\n" "========================================================================\n" - " ApraUtils is designed for embedded Linux systems only.\n" + " ApraLinuxUtils is designed for embedded Linux systems only.\n" " \n" " This library requires:\n" " - Linux kernel headers (I2C, GPIO, PWM)\n" @@ -45,7 +45,7 @@ if(ENABLE_COVERAGE) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage") endif() -add_library(ApraUtils STATIC ${CORE_CODE_FILES}) +add_library(ApraLinuxUtils STATIC ${CORE_CODE_FILES}) # Google Test setup if(BUILD_TESTS) @@ -69,23 +69,23 @@ if(BUILD_TESTS) file(GLOB_RECURSE TEST_SOURCES tests/*.cpp) # Create test executable - add_executable(ApraUtilsTests ${TEST_SOURCES}) + add_executable(ApraLinuxUtilsTests ${TEST_SOURCES}) - # Link against ApraUtils library and Google Test - target_link_libraries(ApraUtilsTests - ApraUtils + # Link against ApraLinuxUtils library and Google Test + target_link_libraries(ApraLinuxUtilsTests + ApraLinuxUtils gtest gtest_main pthread ) # Include directories for tests - target_include_directories(ApraUtilsTests PRIVATE + target_include_directories(ApraLinuxUtilsTests PRIVATE ${CMAKE_SOURCE_DIR}/includes ${CMAKE_SOURCE_DIR}/tests ) # Add tests to CTest include(GoogleTest) - gtest_discover_tests(ApraUtilsTests) + gtest_discover_tests(ApraLinuxUtilsTests) endif() diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9199949..d63fbb2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to ApraUtils +# Contributing to ApraLinuxUtils -Thank you for considering contributing to ApraUtils! We welcome contributions from the community and are grateful for your support. +Thank you for considering contributing to ApraLinuxUtils! We welcome contributions from the community and are grateful for your support. ## Table of Contents @@ -24,7 +24,7 @@ This project and everyone participating in it is governed by our [Code of Conduc ### Reporting Bugs -Before creating bug reports, please check the [existing issues](https://github.com/Apra-Labs/ApraUtils/issues) to avoid duplicates. +Before creating bug reports, please check the [existing issues](https://github.com/Apra-Labs/ApraLinuxUtils/issues) to avoid duplicates. When creating a bug report, please include: @@ -71,7 +71,7 @@ Enhancement suggestions are tracked as GitHub issues. When creating an enhanceme - **Use a clear and descriptive title** - **Provide a detailed description** of the proposed functionality -- **Explain why this enhancement would be useful** to most ApraUtils users +- **Explain why this enhancement would be useful** to most ApraLinuxUtils users - **List any similar features** in other libraries - **Include code examples** if applicable @@ -104,11 +104,11 @@ sudo apt-get install -y clang-format clang-tidy doxygen graphviz ```bash # 1. Fork and clone the repository -git clone https://github.com/YOUR_USERNAME/ApraUtils.git -cd ApraUtils +git clone https://github.com/YOUR_USERNAME/ApraLinuxUtils.git +cd ApraLinuxUtils # 2. Add upstream remote -git remote add upstream https://github.com/Apra-Labs/ApraUtils.git +git remote add upstream https://github.com/Apra-Labs/ApraLinuxUtils.git # 3. Create a development branch git checkout -b feature/your-feature-name @@ -212,7 +212,7 @@ void MyClass::myFunction(int param1, bool param2) * * Copyright (c) 2024 Apra Labs * - * This file is part of ApraUtils. + * This file is part of ApraLinuxUtils. * * Licensed under the MIT License. * See LICENSE file in the project root for full license information. @@ -440,14 +440,14 @@ bool Init(bool isRead); If you have questions about contributing: -- Open a [GitHub Discussion](https://github.com/Apra-Labs/ApraUtils/discussions) -- Check existing [Issues](https://github.com/Apra-Labs/ApraUtils/issues) -- Review [Documentation](https://apra-labs.github.io/ApraUtils/) +- Open a [GitHub Discussion](https://github.com/Apra-Labs/ApraLinuxUtils/discussions) +- Check existing [Issues](https://github.com/Apra-Labs/ApraLinuxUtils/issues) +- Review [Documentation](https://apra-labs.github.io/ApraLinuxUtils/) ## License -By contributing to ApraUtils, you agree that your contributions will be licensed under the MIT License. +By contributing to ApraLinuxUtils, you agree that your contributions will be licensed under the MIT License. --- -Thank you for contributing to ApraUtils! Your efforts help make this project better for everyone. +Thank you for contributing to ApraLinuxUtils! Your efforts help make this project better for everyone. diff --git a/Doxyfile b/Doxyfile index d2e3bcf..be8408d 100644 --- a/Doxyfile +++ b/Doxyfile @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8 # title of most generated pages and in a few other places. # The default value is: My Project. -PROJECT_NAME = "ApraUtils" +PROJECT_NAME = "ApraLinuxUtils" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version diff --git a/PACKAGING.md b/PACKAGING.md index af2ed49..a153ea1 100644 --- a/PACKAGING.md +++ b/PACKAGING.md @@ -1,6 +1,6 @@ -# Packaging Guide for ApraUtils +# Packaging Guide for ApraLinuxUtils -This guide provides instructions for packaging ApraUtils for various distribution channels. +This guide provides instructions for packaging ApraLinuxUtils for various distribution channels. ## Table of Contents @@ -26,14 +26,14 @@ Before packaging, ensure you have: ## CMake Install Targets -ApraUtils uses CMake for building. To add install targets, update `CMakeLists.txt`: +ApraLinuxUtils uses CMake for building. To add install targets, update `CMakeLists.txt`: ```cmake # Installation configuration include(GNUInstallDirs) # Install library -install(TARGETS ApraUtils +install(TARGETS ApraLinuxUtils ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} @@ -41,18 +41,18 @@ install(TARGETS ApraUtils # Install headers install(DIRECTORY ${CMAKE_SOURCE_DIR}/includes/ - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ApraUtils + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ApraLinuxUtils FILES_MATCHING PATTERN "*.h" ) # Install CMake package configuration -install(FILES ApraUtilsConfig.cmake - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ApraUtils +install(FILES ApraLinuxUtilsConfig.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ApraLinuxUtils ) # Create pkg-config file -configure_file(ApraUtils.pc.in ApraUtils.pc @ONLY) -install(FILES ${CMAKE_BINARY_DIR}/ApraUtils.pc +configure_file(ApraLinuxUtils.pc.in ApraLinuxUtils.pc @ONLY) +install(FILES ${CMAKE_BINARY_DIR}/ApraLinuxUtils.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) ``` @@ -77,15 +77,15 @@ sudo make install ```cmake # CPack configuration for Debian packaging set(CPACK_GENERATOR "DEB") -set(CPACK_PACKAGE_NAME "libaprautils") +set(CPACK_PACKAGE_NAME "libapralinuxutils") set(CPACK_PACKAGE_VERSION "1.0.0") set(CPACK_PACKAGE_CONTACT "Apra Labs ") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hardware interface library for embedded Linux") -set(CPACK_PACKAGE_DESCRIPTION "ApraUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management.") +set(CPACK_PACKAGE_DESCRIPTION "ApraLinuxUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management.") set(CPACK_DEBIAN_PACKAGE_DEPENDS "libudev1, libc6 (>= 2.27)") set(CPACK_DEBIAN_PACKAGE_SECTION "libs") set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") -set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/Apra-Labs/ApraUtils") +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/Apra-Labs/ApraLinuxUtils") include(CPack) ``` @@ -112,27 +112,27 @@ mkdir -p debian/source 2. **Create `debian/control`:** ``` -Source: libaprautils +Source: libapralinuxutils Section: libs Priority: optional Maintainer: Apra Labs Build-Depends: debhelper (>= 11), cmake (>= 3.10), libudev-dev Standards-Version: 4.5.0 -Homepage: https://github.com/Apra-Labs/ApraUtils +Homepage: https://github.com/Apra-Labs/ApraLinuxUtils -Package: libaprautils1 +Package: libapralinuxutils1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libudev1 Description: Hardware interface library for embedded Linux - ApraUtils is a comprehensive C++ library for embedded Linux hardware + ApraLinuxUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management. -Package: libaprautils-dev +Package: libapralinuxutils-dev Section: libdevel Architecture: any -Depends: libaprautils1 (= ${binary:Version}), ${misc:Depends} -Description: Development files for ApraUtils - Development files (headers) for ApraUtils library. +Depends: libapralinuxutils1 (= ${binary:Version}), ${misc:Depends} +Description: Development files for ApraLinuxUtils + Development files (headers) for ApraLinuxUtils library. ``` 3. **Create `debian/rules`:** @@ -150,7 +150,7 @@ override_dh_auto_configure: 4. **Create `debian/changelog`:** ``` -libaprautils (1.0.0-1) unstable; urgency=low +libapralinuxutils (1.0.0-1) unstable; urgency=low * Initial release @@ -178,7 +178,7 @@ debuild -us -uc -b ### Installing the .deb Package ```bash -sudo dpkg -i libaprautils1_1.0.0-1_amd64.deb libaprautils-dev_1.0.0-1_amd64.deb +sudo dpkg -i libapralinuxutils1_1.0.0-1_amd64.deb libapralinuxutils-dev_1.0.0-1_amd64.deb ``` --- @@ -192,13 +192,13 @@ sudo dpkg -i libaprautils1_1.0.0-1_amd64.deb libaprautils-dev_1.0.0-1_amd64.deb ```cmake # CPack configuration for RPM packaging set(CPACK_GENERATOR "RPM") -set(CPACK_RPM_PACKAGE_NAME "libaprautils") +set(CPACK_RPM_PACKAGE_NAME "libapralinuxutils") set(CPACK_RPM_PACKAGE_VERSION "1.0.0") set(CPACK_RPM_PACKAGE_RELEASE "1") set(CPACK_RPM_PACKAGE_LICENSE "MIT") set(CPACK_RPM_PACKAGE_GROUP "Development/Libraries") -set(CPACK_RPM_PACKAGE_URL "https://github.com/Apra-Labs/ApraUtils") -set(CPACK_RPM_PACKAGE_DESCRIPTION "ApraUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management.") +set(CPACK_RPM_PACKAGE_URL "https://github.com/Apra-Labs/ApraLinuxUtils") +set(CPACK_RPM_PACKAGE_DESCRIPTION "ApraLinuxUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management.") set(CPACK_RPM_PACKAGE_REQUIRES "systemd-libs >= 219") set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64") @@ -216,16 +216,16 @@ cpack -G RPM ### Manual RPM Creation -1. **Create RPM spec file `aprautils.spec`:** +1. **Create RPM spec file `apralinuxutils.spec`:** ```spec -Name: libaprautils +Name: libapralinuxutils Version: 1.0.0 Release: 1%{?dist} Summary: Hardware interface library for embedded Linux License: MIT -URL: https://github.com/Apra-Labs/ApraUtils +URL: https://github.com/Apra-Labs/ApraLinuxUtils Source0: %{name}-%{version}.tar.gz BuildRequires: cmake >= 3.10 @@ -234,7 +234,7 @@ BuildRequires: systemd-devel Requires: systemd-libs >= 219 %description -ApraUtils is a comprehensive C++ library for embedded Linux hardware +ApraLinuxUtils is a comprehensive C++ library for embedded Linux hardware interfaces including GPIO, I2C, PWM, and USB storage management. %package devel @@ -242,7 +242,7 @@ Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel -Development files (headers) for ApraUtils library. +Development files (headers) for ApraLinuxUtils library. %prep %setup -q @@ -260,10 +260,10 @@ cd build %files %license LICENSE %doc README.md -%{_libdir}/libApraUtils.a +%{_libdir}/libApraLinuxUtils.a %files devel -%{_includedir}/ApraUtils/ +%{_includedir}/ApraLinuxUtils/ %changelog * Sun Nov 10 2025 Apra Labs - 1.0.0-1 @@ -273,13 +273,13 @@ cd build 2. **Build the RPM:** ```bash -rpmbuild -ba aprautils.spec +rpmbuild -ba apralinuxutils.spec ``` ### Installing the .rpm Package ```bash -sudo rpm -ivh libaprautils-1.0.0-1.x86_64.rpm libaprautils-devel-1.0.0-1.x86_64.rpm +sudo rpm -ivh libapralinuxutils-1.0.0-1.x86_64.rpm libapralinuxutils-devel-1.0.0-1.x86_64.rpm ``` --- @@ -297,12 +297,12 @@ from conan import ConanFile from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps from conan.tools.files import copy -class ApraUtilsConan(ConanFile): - name = "aprautils" +class ApraLinuxUtilsConan(ConanFile): + name = "apralinuxutils" version = "1.0.0" license = "MIT" author = "Apra Labs " - url = "https://github.com/Apra-Labs/ApraUtils" + url = "https://github.com/Apra-Labs/ApraLinuxUtils" description = "Hardware interface library for embedded Linux" topics = ("embedded", "linux", "gpio", "i2c", "pwm", "hardware") settings = "os", "compiler", "build_type", "arch" @@ -338,16 +338,16 @@ class ApraUtilsConan(ConanFile): cmake.install() def package_info(self): - self.cpp_info.libs = ["ApraUtils"] + self.cpp_info.libs = ["ApraLinuxUtils"] self.cpp_info.system_libs = ["pthread", "udev"] self.cpp_info.set_property("cmake_find_mode", "both") - self.cpp_info.set_property("cmake_file_name", "ApraUtils") - self.cpp_info.set_property("cmake_target_name", "ApraUtils::ApraUtils") - self.cpp_info.set_property("pkg_config_name", "ApraUtils") + self.cpp_info.set_property("cmake_file_name", "ApraLinuxUtils") + self.cpp_info.set_property("cmake_target_name", "ApraLinuxUtils::ApraLinuxUtils") + self.cpp_info.set_property("pkg_config_name", "ApraLinuxUtils") def validate(self): if self.settings.os != "Linux": - raise ConanInvalidConfiguration("ApraUtils only supports Linux") + raise ConanInvalidConfiguration("ApraLinuxUtils only supports Linux") ``` 2. **Create the package:** @@ -366,13 +366,13 @@ git clone https://github.com/conan-io/conan-center-index.git cd conan-center-index # Create recipe directory -mkdir -p recipes/aprautils/all +mkdir -p recipes/apralinuxutils/all # Copy conanfile.py and create config.yml -cp /path/to/conanfile.py recipes/aprautils/all/ +cp /path/to/conanfile.py recipes/apralinuxutils/all/ ``` -Create `recipes/aprautils/config.yml`: +Create `recipes/apralinuxutils/config.yml`: ```yaml versions: @@ -382,13 +382,13 @@ versions: Submit a pull request to Conan Center Index. -### Using ApraUtils from Conan +### Using ApraLinuxUtils from Conan In your `conanfile.txt`: ```ini [requires] -aprautils/1.0.0 +apralinuxutils/1.0.0 [generators] CMakeDeps @@ -399,7 +399,7 @@ Or in your `conanfile.py`: ```python def requirements(self): - self.requires("aprautils/1.0.0") + self.requires("apralinuxutils/1.0.0") ``` --- @@ -420,15 +420,15 @@ cd vcpkg 2. **Create port directory:** ```bash -mkdir -p ports/aprautils +mkdir -p ports/apralinuxutils ``` -3. **Create `ports/aprautils/portfile.cmake`:** +3. **Create `ports/apralinuxutils/portfile.cmake`:** ```cmake vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH - REPO Apra-Labs/ApraUtils + REPO Apra-Labs/ApraLinuxUtils REF v1.0.0 SHA512 HEAD_REF main @@ -440,7 +440,7 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ApraUtils) +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ApraLinuxUtils) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") @@ -449,14 +449,14 @@ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share vcpkg_copy_pdbs() ``` -4. **Create `ports/aprautils/vcpkg.json`:** +4. **Create `ports/apralinuxutils/vcpkg.json`:** ```json { - "name": "aprautils", + "name": "apralinuxutils", "version": "1.0.0", "description": "Hardware interface library for embedded Linux", - "homepage": "https://github.com/Apra-Labs/ApraUtils", + "homepage": "https://github.com/Apra-Labs/ApraLinuxUtils", "license": "MIT", "supports": "linux", "dependencies": [ @@ -476,21 +476,21 @@ vcpkg_copy_pdbs() ```bash cd vcpkg -git add ports/aprautils -./vcpkg x-add-version aprautils +git add ports/apralinuxutils +./vcpkg x-add-version apralinuxutils ``` 6. **Test the port:** ```bash -./vcpkg install aprautils +./vcpkg install apralinuxutils ``` 7. **Submit to vcpkg:** Create a pull request to the [vcpkg repository](https://github.com/microsoft/vcpkg). -### Using ApraUtils from vcpkg +### Using ApraLinuxUtils from vcpkg ```bash # Install vcpkg @@ -498,8 +498,8 @@ git clone https://github.com/microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh -# Install ApraUtils -./vcpkg install aprautils +# Install ApraLinuxUtils +./vcpkg install apralinuxutils # Use in CMake cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake @@ -508,29 +508,29 @@ cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/v In your `CMakeLists.txt`: ```cmake -find_package(ApraUtils CONFIG REQUIRED) -target_link_libraries(your_target PRIVATE ApraUtils::ApraUtils) +find_package(ApraLinuxUtils CONFIG REQUIRED) +target_link_libraries(your_target PRIVATE ApraLinuxUtils::ApraLinuxUtils) ``` --- ## Additional Files Needed -### ApraUtilsConfig.cmake +### ApraLinuxUtilsConfig.cmake -Create `ApraUtilsConfig.cmake.in`: +Create `ApraLinuxUtilsConfig.cmake.in`: ```cmake @PACKAGE_INIT@ -include("${CMAKE_CURRENT_LIST_DIR}/ApraUtilsTargets.cmake") +include("${CMAKE_CURRENT_LIST_DIR}/ApraLinuxUtilsTargets.cmake") -check_required_components(ApraUtils) +check_required_components(ApraLinuxUtils) ``` -### ApraUtils.pc.in (pkg-config) +### ApraLinuxUtils.pc.in (pkg-config) -Create `ApraUtils.pc.in`: +Create `ApraLinuxUtils.pc.in`: ``` prefix=@CMAKE_INSTALL_PREFIX@ @@ -538,13 +538,13 @@ exec_prefix=${prefix} libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ -Name: ApraUtils +Name: ApraLinuxUtils Description: Hardware interface library for embedded Linux Version: @PROJECT_VERSION@ Requires: -Libs: -L${libdir} -lApraUtils +Libs: -L${libdir} -lApraLinuxUtils Libs.private: -lpthread -ludev -Cflags: -I${includedir}/ApraUtils +Cflags: -I${includedir}/ApraLinuxUtils ``` --- @@ -555,34 +555,34 @@ Cflags: -I${includedir}/ApraUtils ```bash # Install -sudo dpkg -i libaprautils1_1.0.0-1_amd64.deb libaprautils-dev_1.0.0-1_amd64.deb +sudo dpkg -i libapralinuxutils1_1.0.0-1_amd64.deb libapralinuxutils-dev_1.0.0-1_amd64.deb # Verify installation -dpkg -L libaprautils1 -dpkg -L libaprautils-dev +dpkg -L libapralinuxutils1 +dpkg -L libapralinuxutils-dev # Test compilation -g++ -o test test.cpp -lApraUtils -lpthread -ludev +g++ -o test test.cpp -lApraLinuxUtils -lpthread -ludev # Remove -sudo apt-get remove libaprautils1 libaprautils-dev +sudo apt-get remove libapralinuxutils1 libapralinuxutils-dev ``` ### Test .rpm Package ```bash # Install -sudo rpm -ivh libaprautils-1.0.0-1.x86_64.rpm libaprautils-devel-1.0.0-1.x86_64.rpm +sudo rpm -ivh libapralinuxutils-1.0.0-1.x86_64.rpm libapralinuxutils-devel-1.0.0-1.x86_64.rpm # Verify installation -rpm -ql libaprautils -rpm -ql libaprautils-devel +rpm -ql libapralinuxutils +rpm -ql libapralinuxutils-devel # Test compilation -g++ -o test test.cpp -lApraUtils -lpthread -ludev +g++ -o test test.cpp -lApraLinuxUtils -lpthread -ludev # Remove -sudo rpm -e libaprautils libaprautils-devel +sudo rpm -e libapralinuxutils libapralinuxutils-devel ``` ### Test Conan Package @@ -594,7 +594,7 @@ mkdir test_conan && cd test_conan # Create conanfile.txt cat > conanfile.txt << EOF [requires] -aprautils/1.0.0 +apralinuxutils/1.0.0 [generators] CMakeDeps @@ -613,17 +613,17 @@ cmake --build build ```bash # Install package -vcpkg install aprautils +vcpkg install apralinuxutils # Create test CMake project cat > CMakeLists.txt << EOF cmake_minimum_required(VERSION 3.10) project(test) -find_package(ApraUtils CONFIG REQUIRED) +find_package(ApraLinuxUtils CONFIG REQUIRED) add_executable(test main.cpp) -target_link_libraries(test PRIVATE ApraUtils::ApraUtils) +target_link_libraries(test PRIVATE ApraLinuxUtils::ApraLinuxUtils) EOF # Build @@ -698,8 +698,8 @@ jobs: ## Support For packaging issues or questions: -- Open an issue: https://github.com/Apra-Labs/ApraUtils/issues -- Check documentation: https://github.com/Apra-Labs/ApraUtils +- Open an issue: https://github.com/Apra-Labs/ApraLinuxUtils/issues +- Check documentation: https://github.com/Apra-Labs/ApraLinuxUtils - Contact: Apra Labs development team --- diff --git a/README.md b/README.md index db73cbd..cbeab4b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# ApraUtils +# ApraLinuxUtils -[![Build Status](https://github.com/Apra-Labs/ApraUtils/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/Apra-Labs/ApraUtils/actions/workflows/c-cpp.yml) +[![Build Status](https://github.com/Apra-Labs/ApraLinuxUtils/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/Apra-Labs/ApraLinuxUtils/actions/workflows/c-cpp.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![C++14](https://img.shields.io/badge/C++-14-blue.svg)](https://isocpp.org/std/the-standard) [![Platform](https://img.shields.io/badge/platform-Linux-lightgrey.svg)](https://www.linux.org/) @@ -64,7 +64,7 @@ The library requires access to the following system interfaces: ### Using Pre-built Library -Download the latest release from the [Releases](https://github.com/Apra-Labs/ApraUtils/releases) page. +Download the latest release from the [Releases](https://github.com/Apra-Labs/ApraLinuxUtils/releases) page. ### From Source @@ -72,8 +72,8 @@ Download the latest release from the [Releases](https://github.com/Apra-Labs/Apr ```bash # Clone the repository -git clone https://github.com/Apra-Labs/ApraUtils.git -cd ApraUtils +git clone https://github.com/Apra-Labs/ApraLinuxUtils.git +cd ApraLinuxUtils # Install dependencies (Ubuntu/Debian) sudo apt-get update @@ -82,7 +82,7 @@ sudo apt-get install -y cmake libudev-dev build-essential # Build the library using the build script ./build.sh -# The static library will be available at build/libApraUtils.a +# The static library will be available at build/libApraLinuxUtils.a ``` #### Build with Tests @@ -122,18 +122,18 @@ sudo apt-get install -y lcov ```cmake # In your CMakeLists.txt -include_directories(/path/to/ApraUtils/includes) -link_directories(/path/to/ApraUtils/build) +include_directories(/path/to/ApraLinuxUtils/includes) +link_directories(/path/to/ApraLinuxUtils/build) add_executable(your_app main.cpp) -target_link_libraries(your_app ApraUtils pthread udev) +target_link_libraries(your_app ApraLinuxUtils pthread udev) ``` #### Manual Compilation ```bash -g++ -std=c++14 your_app.cpp -I/path/to/ApraUtils/includes \ - -L/path/to/ApraUtils/build -lApraUtils -lpthread -ludev -o your_app +g++ -std=c++14 your_app.cpp -I/path/to/ApraLinuxUtils/includes \ + -L/path/to/ApraLinuxUtils/build -lApraLinuxUtils -lpthread -ludev -o your_app ``` ### Basic Usage @@ -299,7 +299,7 @@ make ## Project Structure ``` -ApraUtils/ +ApraLinuxUtils/ ├── includes/ # Public header files │ ├── constants/ # Enum definitions │ ├── controllers/ # Controller classes @@ -339,7 +339,7 @@ This project adheres to a [Code of Conduct](CODE_OF_CONDUCT.md). By participatin ## Versioning -We use [Semantic Versioning](https://semver.org/). For available versions, see the [tags on this repository](https://github.com/Apra-Labs/ApraUtils/tags). +We use [Semantic Versioning](https://semver.org/). For available versions, see the [tags on this repository](https://github.com/Apra-Labs/ApraLinuxUtils/tags). ## License @@ -349,9 +349,9 @@ Copyright (c) 2024 Apra Labs ## Support -- **Documentation**: [GitHub Pages](https://apra-labs.github.io/ApraUtils/) (coming soon) -- **Issues**: [GitHub Issues](https://github.com/Apra-Labs/ApraUtils/issues) -- **Discussions**: [GitHub Discussions](https://github.com/Apra-Labs/ApraUtils/discussions) +- **Documentation**: [GitHub Pages](https://apra-labs.github.io/ApraLinuxUtils/) (coming soon) +- **Issues**: [GitHub Issues](https://github.com/Apra-Labs/ApraLinuxUtils/issues) +- **Discussions**: [GitHub Discussions](https://github.com/Apra-Labs/ApraLinuxUtils/discussions) ## Acknowledgments diff --git a/build.sh b/build.sh index 8944ac9..b9082e3 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# build.sh - Build script for ApraUtils library +# build.sh - Build script for ApraLinuxUtils library # # Copyright (c) 2024 Apra Labs # @@ -52,7 +52,7 @@ show_usage() { cat << EOF Usage: $0 [OPTIONS] -Build script for ApraUtils library. +Build script for ApraLinuxUtils library. OPTIONS: -h, --help Show this help message @@ -117,7 +117,7 @@ done # Check if running on Linux if [[ "$OSTYPE" != "linux-gnu"* ]]; then - print_error "ApraUtils is designed for Linux systems only" + print_error "ApraLinuxUtils is designed for Linux systems only" print_info "Current OS: $OSTYPE" exit 1 fi @@ -179,7 +179,7 @@ cmake .. \ print_success "CMake configuration completed" # Build -print_info "Building ApraUtils..." +print_info "Building ApraLinuxUtils..." make -j"${JOBS}" || { print_error "Build failed" exit 1 @@ -189,19 +189,19 @@ print_success "Build completed successfully" # Show build artifacts print_info "Build artifacts:" -if [ -f "${BUILD_DIR}/libApraUtils.a" ]; then - echo " Library: ${BUILD_DIR}/libApraUtils.a" - ls -lh "${BUILD_DIR}/libApraUtils.a" +if [ -f "${BUILD_DIR}/libApraLinuxUtils.a" ]; then + echo " Library: ${BUILD_DIR}/libApraLinuxUtils.a" + ls -lh "${BUILD_DIR}/libApraLinuxUtils.a" fi -if [ "$BUILD_TESTS" = "ON" ] && [ -f "${BUILD_DIR}/ApraUtils_tests" ]; then - echo " Tests: ${BUILD_DIR}/ApraUtils_tests" - ls -lh "${BUILD_DIR}/ApraUtils_tests" +if [ "$BUILD_TESTS" = "ON" ] && [ -f "${BUILD_DIR}/ApraLinuxUtilsTests" ]; then + echo " Tests: ${BUILD_DIR}/ApraLinuxUtilsTests" + ls -lh "${BUILD_DIR}/ApraLinuxUtilsTests" fi # Install if requested if [ "$INSTALL" = true ]; then - print_info "Installing ApraUtils..." + print_info "Installing ApraLinuxUtils..." if [ "$EUID" -ne 0 ]; then print_warning "Installation requires root privileges" sudo make install || { @@ -219,7 +219,7 @@ fi # Print next steps echo "" -print_success "ApraUtils build completed!" +print_success "ApraLinuxUtils build completed!" echo "" echo "Next steps:" if [ "$BUILD_TESTS" = "ON" ]; then @@ -230,6 +230,6 @@ if [ "$BUILD_TESTS" = "ON" ]; then else echo " - Run tests: ./build.sh --tests && ./test.sh" fi -echo " - View library: ls -lh ${BUILD_DIR}/libApraUtils.a" +echo " - View library: ls -lh ${BUILD_DIR}/libApraLinuxUtils.a" echo " - Install: ./build.sh --install" echo "" diff --git a/coverage.sh b/coverage.sh index 11b59b4..882a031 100644 --- a/coverage.sh +++ b/coverage.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# coverage.sh - Code coverage report generator for ApraUtils +# coverage.sh - Code coverage report generator for ApraLinuxUtils # # Copyright (c) 2024 Apra Labs # @@ -22,7 +22,7 @@ NC='\033[0m' # No Color SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" BUILD_DIR="${SCRIPT_DIR}/build" COVERAGE_DIR="${BUILD_DIR}/coverage" -TEST_EXECUTABLE="${BUILD_DIR}/ApraUtilsTests" +TEST_EXECUTABLE="${BUILD_DIR}/ApraLinuxUtilsTests" # Default options OPEN_BROWSER=false @@ -50,7 +50,7 @@ show_usage() { cat << EOF Usage: $0 [OPTIONS] -Generate code coverage report for ApraUtils library. +Generate code coverage report for ApraLinuxUtils library. OPTIONS: -h, --help Show this help message @@ -180,7 +180,7 @@ lcov --remove "${COVERAGE_DIR}/coverage.info" \ print_info "Generating HTML coverage report..." genhtml "${COVERAGE_DIR}/coverage_filtered.info" \ --output-directory "${COVERAGE_DIR}/html" \ - --title "ApraUtils Code Coverage" \ + --title "ApraLinuxUtils Code Coverage" \ --legend \ --show-details \ --branch-coverage \ diff --git a/examples/README.md b/examples/README.md index ea787fb..0055b22 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,6 +1,6 @@ -# ApraUtils Examples +# ApraLinuxUtils Examples -This directory contains comprehensive examples demonstrating how to use the ApraUtils library for embedded Linux development. +This directory contains comprehensive examples demonstrating how to use the ApraLinuxUtils library for embedded Linux development. ## Available Examples @@ -16,7 +16,7 @@ Demonstrates digital I/O operations: ```bash # Compile -g++ -std=c++14 gpio_example.cpp -I../includes -L../build -lApraUtils -lpthread -o gpio_example +g++ -std=c++14 gpio_example.cpp -I../includes -L../build -lApraLinuxUtils -lpthread -o gpio_example # Run all examples sudo ./gpio_example @@ -40,7 +40,7 @@ Demonstrates I2C sensor interfacing: ```bash # Compile -g++ -std=c++14 i2c_example.cpp -I../includes -L../build -lApraUtils -lpthread -o i2c_example +g++ -std=c++14 i2c_example.cpp -I../includes -L../build -lApraLinuxUtils -lpthread -o i2c_example # Run sudo ./i2c_example @@ -58,7 +58,7 @@ Demonstrates pulse width modulation: ```bash # Compile -g++ -std=c++14 pwm_example.cpp -I../includes -L../build -lApraUtils -o pwm_example +g++ -std=c++14 pwm_example.cpp -I../includes -L../build -lApraLinuxUtils -o pwm_example # Run all examples sudo ./pwm_example @@ -80,7 +80,7 @@ Demonstrates USB device detection: ```bash # Compile -g++ -std=c++14 usb_storage_example.cpp -I../includes -L../build -lApraUtils -ludev -o usb_storage_example +g++ -std=c++14 usb_storage_example.cpp -I../includes -L../build -lApraLinuxUtils -ludev -o usb_storage_example # Run basic detection sudo ./usb_storage_example @@ -105,7 +105,7 @@ Demonstrates thread management and message passing: ```bash # Compile -g++ -std=c++14 threading_example.cpp -I../includes -L../build -lApraUtils -lpthread -o threading_example +g++ -std=c++14 threading_example.cpp -I../includes -L../build -lApraLinuxUtils -lpthread -o threading_example # Run all examples ./threading_example @@ -145,7 +145,7 @@ sudo usermod -a -G gpio,i2c,dialout $USER All examples can be compiled with: ```bash -g++ -std=c++14 example_name.cpp -I../includes -L../build -lApraUtils [additional libs] -o example_name +g++ -std=c++14 example_name.cpp -I../includes -L../build -lApraLinuxUtils [additional libs] -o example_name ``` Common additional libraries: @@ -168,7 +168,7 @@ Each example follows this structure: 1. **Copyright Header**: MIT License with Apra Labs copyright 2. **Documentation**: Purpose, hardware setup, compilation, execution -3. **Includes**: ApraUtils and standard library headers +3. **Includes**: ApraLinuxUtils and standard library headers 4. **Helper Functions**: Utility functions for the examples 5. **Example Functions**: Individual demonstrations 6. **Main Function**: Command-line argument parsing and execution @@ -224,16 +224,16 @@ ls /sys/class/pwm/ ### Compilation Errors ```bash -# Ensure ApraUtils is built +# Ensure ApraLinuxUtils is built cd ../build cmake .. make # Check library path -ls ../build/libApraUtils.a +ls ../build/libApraLinuxUtils.a # Verify include path -ls ../includes/ApraUtils.h +ls ../includes/ApraLinuxUtils.h ``` ## Contributing Examples @@ -249,8 +249,8 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md) for details. ## Support -- **Issues**: [GitHub Issues](https://github.com/Apra-Labs/ApraUtils/issues) -- **Discussions**: [GitHub Discussions](https://github.com/Apra-Labs/ApraUtils/discussions) +- **Issues**: [GitHub Issues](https://github.com/Apra-Labs/ApraLinuxUtils/issues) +- **Discussions**: [GitHub Discussions](https://github.com/Apra-Labs/ApraLinuxUtils/discussions) - **Documentation**: [Main README](../README.md) ## License diff --git a/examples/gpio_example.cpp b/examples/gpio_example.cpp index ef58bf2..ff0bf31 100644 --- a/examples/gpio_example.cpp +++ b/examples/gpio_example.cpp @@ -24,7 +24,7 @@ * - Sensor connected to GPIO pin 25 (input with interrupt on rising edge) * * Compilation: - * g++ -std=c++14 gpio_example.cpp -I../includes -L../build -lApraUtils -lpthread -o gpio_example + * g++ -std=c++14 gpio_example.cpp -I../includes -L../build -lApraLinuxUtils -lpthread -o gpio_example * * Execution: * sudo ./gpio_example @@ -218,7 +218,7 @@ int main(int argc, char** argv) signal(SIGINT, signalHandler); signal(SIGTERM, signalHandler); - cout << "ApraUtils GPIO Examples" << endl; + cout << "ApraLinuxUtils GPIO Examples" << endl; cout << "=======================" << endl; cout << "\nThese examples demonstrate GPIO functionality." << endl; cout << "Make sure you have the necessary hardware connected." << endl; diff --git a/examples/i2c_example.cpp b/examples/i2c_example.cpp index 0da859c..8733881 100644 --- a/examples/i2c_example.cpp +++ b/examples/i2c_example.cpp @@ -12,7 +12,7 @@ /* * I2C Communication Example * - * This example demonstrates how to use the ApraUtils I2C interface to: + * This example demonstrates how to use the ApraLinuxUtils I2C interface to: * 1. Read temperature data from a TMP102 sensor (I2C address 0x48) * 2. Write configuration to the sensor * 3. Handle I2C transactions with error checking @@ -35,7 +35,7 @@ * * Compilation: * ------------ - * g++ -std=c++14 i2c_example.cpp -o i2c_example -lApraUtils -lpthread + * g++ -std=c++14 i2c_example.cpp -o i2c_example -lApraLinuxUtils -lpthread * * Execution: * ---------- @@ -209,7 +209,7 @@ void asynchronousReadExample(I2C_Interface& i2c) { // Main function int main() { cout << "==================================================" << endl; - cout << "ApraUtils I2C Communication Example" << endl; + cout << "ApraLinuxUtils I2C Communication Example" << endl; cout << "Testing with TMP102 Temperature Sensor" << endl; cout << "==================================================" << endl; diff --git a/examples/pwm_example.cpp b/examples/pwm_example.cpp index 62874cb..dbd9791 100644 --- a/examples/pwm_example.cpp +++ b/examples/pwm_example.cpp @@ -12,7 +12,7 @@ /* * PWM Control Example * - * This example demonstrates how to use the ApraUtils PWM interface to: + * This example demonstrates how to use the ApraLinuxUtils PWM interface to: * 1. Control LED brightness by varying duty cycle * 2. Control servo motor position * 3. Demonstrate different PWM frequencies @@ -44,7 +44,7 @@ * * Compilation: * ------------ - * g++ -std=c++14 pwm_example.cpp -o pwm_example -lApraUtils + * g++ -std=c++14 pwm_example.cpp -o pwm_example -lApraLinuxUtils * * Execution: * ---------- @@ -296,7 +296,7 @@ void frequencyVariationExample() { // Main function int main() { cout << "==================================================" << endl; - cout << "ApraUtils PWM Control Example" << endl; + cout << "ApraLinuxUtils PWM Control Example" << endl; cout << "==================================================" << endl; cout << "This example demonstrates PWM control for:" << endl; cout << " 1. LED brightness control" << endl; diff --git a/examples/threading_example.cpp b/examples/threading_example.cpp index c905232..249a0e7 100644 --- a/examples/threading_example.cpp +++ b/examples/threading_example.cpp @@ -12,7 +12,7 @@ /* * Multi-Threading with ProcessThread Example * - * This example demonstrates how to use the ApraUtils ProcessThread class to: + * This example demonstrates how to use the ApraLinuxUtils ProcessThread class to: * 1. Create custom threads by extending ProcessThread * 2. Implement message passing between threads * 3. Use REQUEST_ONLY and REQUEST_RESPONSE message types @@ -35,7 +35,7 @@ * * Compilation: * ------------ - * g++ -std=c++14 threading_example.cpp -o threading_example -lApraUtils -lpthread + * g++ -std=c++14 threading_example.cpp -o threading_example -lApraLinuxUtils -lpthread * * Execution: * ---------- @@ -467,7 +467,7 @@ void threadLifecycleExample() { // Main function int main() { cout << "==================================================" << endl; - cout << "ApraUtils ProcessThread Example" << endl; + cout << "ApraLinuxUtils ProcessThread Example" << endl; cout << "==================================================" << endl; cout << "This example demonstrates thread management and" << endl; cout << "message-based inter-thread communication." << endl; diff --git a/examples/usb_storage_example.cpp b/examples/usb_storage_example.cpp index 1e3837f..f817989 100644 --- a/examples/usb_storage_example.cpp +++ b/examples/usb_storage_example.cpp @@ -39,7 +39,7 @@ * * Compilation: * ------------ - * g++ -std=c++14 usb_storage_example.cpp -o usb_storage_example -lApraUtils -ludev + * g++ -std=c++14 usb_storage_example.cpp -o usb_storage_example -lApraLinuxUtils -ludev * * Execution: * ---------- @@ -347,7 +347,7 @@ void detectionOnlyExample() { // Main function int main() { cout << "==================================================" << endl; - cout << "ApraUtils USB Storage Detection Example" << endl; + cout << "ApraLinuxUtils USB Storage Detection Example" << endl; cout << "==================================================" << endl; cout << "This example demonstrates:" << endl; cout << " 1. Basic USB detection and mounting" << endl; diff --git a/test.sh b/test.sh index ea54e3d..c982b35 100644 --- a/test.sh +++ b/test.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# test.sh - Test script for ApraUtils library +# test.sh - Test script for ApraLinuxUtils library # # Copyright (c) 2024 Apra Labs # @@ -21,7 +21,7 @@ NC='\033[0m' # No Color # Script directory SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" BUILD_DIR="${SCRIPT_DIR}/build" -TEST_EXECUTABLE="${BUILD_DIR}/ApraUtilsTests" +TEST_EXECUTABLE="${BUILD_DIR}/ApraLinuxUtilsTests" # Default options VERBOSE=false @@ -50,7 +50,7 @@ show_usage() { cat << EOF Usage: $0 [OPTIONS] -Run unit tests for ApraUtils library. +Run unit tests for ApraLinuxUtils library. OPTIONS: -h, --help Show this help message